home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_37437.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  54 lines

  1. -- card: 37437 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: winkler@Apple.COM (Dan Winkler)
  12.  
  13. Date: 10 Mar 88 17:34:20 GMT
  14.  
  15. Your script said:
  16.  
  17.   go stack "destination" 
  18.   if i > the number of cards then
  19.     doMenu "New Card"
  20.   end if
  21.   go card i
  22.   put f1contents into field "f1" 
  23.  
  24. First of all, you don't need an "end if" with a single line if
  25. statement, so you could have written:
  26.  
  27.   go stack "destination" 
  28.   if i > the number of cards then doMenu "New Card"
  29.   go card i
  30.   put f1contents into field "f1" 
  31.  
  32. Or even:
  33.  
  34.   go stack "destination" 
  35.   if i > the number of cards then doMenu "New Card"
  36.   put f1contents into field "f1" of card i
  37.  
  38. Now, about your bug: your first go command takes you to the first card
  39. of the destination stack.  The doMenu "New Card", if it's executed,
  40. makes a new card right after the first one.  So the new card is card
  41. number 2.  But you always write into card i, not on the new card you
  42. created.  This can all be fixed by changing that first go so that it
  43. reads:
  44.  
  45.   go to last card of stack "destination" 
  46.  
  47. So that when you make a new card it will be the very last card in the
  48. stack.
  49.  
  50.  
  51.  
  52. -- part contents for background part 45
  53. ----- text -----
  54. Re: Copying contents of stacks